package com.linewell.dao.impl;

import com.linewell.dao.MessageMapper;
import com.linewell.entity.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class MessageDao implements MessageMapper {

	@Autowired
	private MessageMapper messageMapper;
	
	public void InsertMessage(Message message) {
		messageMapper.InsertMessage(message);
	}

	public List<Message> getMessageList(Long sender, Long receiver) {
		return messageMapper.getMessageList(sender, receiver);
	}

	public void updateBatchState(List<Long> messages) {
		messageMapper.updateBatchState(messages);
	}

}
